home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / dsp / a56_10sh.z / a56_10sh / Makefile < prev    next >
Makefile  |  1996-06-25  |  971b  |  51 lines

  1. ########################################################
  2. #
  3. #  a56 - a DSP56001 assembler
  4. #
  5. #  Written by Quinn C. Jensen
  6. #  July 1990
  7. #  jensenq@npd.novell.com (or jensenq@qcj.icon.com)
  8. #
  9. #######################################################
  10.  
  11. LIB = -ll
  12.  
  13. OBJS = main.o gram.o lex.o tok_tab.o subs.o
  14.  
  15. #NOTE: lex.c cannot be compiled with -g.  An assembler bug causes the text
  16. #  symbols to be messed up (at least on the Icon system).
  17.  
  18. CFLAGS = -g -DYYDEBUG
  19.  
  20. all:    a56 toomf
  21.  
  22. a56:    $(OBJS)
  23.     $(CC) $(CFLAGS) -o a56 $(OBJS) $(LIB)
  24.  
  25. lex.o:    lex.yy.c lex.c gram.h
  26.     $(CC) -c lex.c
  27.  
  28. lex.yy.c:    a56.l
  29.     lex -v a56.l
  30.  
  31. gram.c:    a56.y
  32.     yacc a56.y
  33.     mv y.tab.c gram.c
  34.  
  35. header:    ; yacc -d a56.y
  36.     mv y.tab.h gram.h
  37.  
  38. tok_tab.c:    gram.h
  39.     awk -f tok.awk < gram.h > tok_tab.c
  40.  
  41. y.output:    a56.y
  42.     yacc -v a56.y
  43.  
  44. toomf:    toomf.o
  45.     $(CC) -o toomf $(CFLAGS) toomf.o
  46.  
  47. tape:    ; tar cvbf 1 - Makefile main.c a56.y lex.c a56.l tok.awk \
  48.         a56.h qcjlib.h *.a56 | compress > a56.tar.Z
  49.  
  50. main.o gram.o lex.o:    a56.h
  51.